//
// Created by Criinal Nicole on 2020/6/17.
//

#include <cstring>
#include "DirectoryBlock.h"

int DIRECTORY_BLOCK::dictionaryNum;

DIRECTORY_BLOCK::DirectoryBlock DIRECTORY_BLOCK::dictionaryBlocks[MAX_DIRECTORY_NUM];

//初始化，仅创建根目录
void DIRECTORY_BLOCK::init() {
    memset(dictionaryBlocks, 0, sizeof(dictionaryBlocks));
    dictionaryNum = 1;
    dictionaryBlocks[0]._dictionaryId = dictionaryBlocks[0]._address = 0;
}

